/**
 * Created by yt758 on 2025/2/22.
 * */
#include "Spot.h"

BaseObject *createSpot() {
    return new Spot();
}

void destroySpot(BaseObject *p) {
    SAFE_DELETE(p);
}

Spot::Spot(){
}

Spot::~Spot() {
}

/* 如果使用了DDS_Reader或者DDS_Writer，则对应的input或者output前64个字节为DataFormat head首部 */
void Spot::onCompute(buffer_table_t *input, buffer_table_t *output) {
  /** 获取端口数据指针示例
   * const char *src0 = input->list[0]->data;
   * char *dest0 = output->list[0]->data;
   * */


  /** 计算示例
   * if (input->list[0]->valid) {
   *     memcpy(dest0, src0, std::min(input->list[0]->len, output->list[0]->len));
   *   }
   * */
}
